package com.can.entityDTO;

import java.util.List;

/**
 * @Desription 树节点
 * @Author can
 * @Date 2018/10/29
 * @Version 1.0
 */
public class TreeNode<T> {
    /** 唯一id **/
    private Integer id;
    /** 父id **/
    private Integer fId;
    /** 节点显示名称 **/
    private String label;
    /** 子节点 **/
    private List<TreeNode<T>> children;
    /** 节点详细数据 **/
    private T entity;

    public Integer getfId() {
        return fId;
    }

    public void setfId(Integer fId) {
        this.fId = fId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<TreeNode<T>> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode<T>> children) {
        this.children = children;
    }

    public T getEntity() {
        return entity;
    }

    public void setEntity(T entity) {
        this.entity = entity;
    }
}
